package com.atguigu.work;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Citizen me = new Citizen();
        Citizen dad = new Citizen();
        Citizen mom = new Citizen();

        me.name = "马";
        me.num = "10010";
        me.birth = new MyDate();
        me.birth.year = 1900;
        me.birth.month = 1;
        me.birth.day = 2;

        dad.name = "爸爸";
        dad.num = "10086";
        dad.birth = new MyDate();
        dad.birth.year = 1960;
        dad.birth.month = 4;
        dad.birth.day = 5;

        mom.name = "妈妈";
        mom.num = "10000";
        mom.birth = new MyDate();
        mom.birth.year = 1966;
        mom.birth.month = 6;
        mom.birth.day = 30;

        System.out.println(dad.info() + dad.birth.info());
        System.out.println(mom.info() + mom.birth.info());
        System.out.println(me.info() + me.birth.info());
    }
}
